//
//  NSAttributedString+YTAdd.h
//  tesDemo02
//
//  Created by 拓客营 on 2022/3/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSAttributedString (YTAdd)

/// 计算富文本字体文字大小
/// @param width 限制宽度
- (CGSize)sizeForWidth:(CGFloat)width;

+ (NSAttributedString *)attributedString:(NSString *)string attributes:(NSDictionary *)attributes;

// html 转富文本
+ (NSAttributedString *)toAttributedWithHtmlStr:(NSString *)htmlStr;

@end

NS_ASSUME_NONNULL_END
